<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <script src="./js/vue.js"></script>
    <script src="./js/element-ui.js"></script>
    <link rel="stylesheet" href="./js/element-ui.css">
    <script src="./js/axios.js"></script>
</head>

<body>
    <div id="app">
        <!-- <el-table v-for="item in tableData" style="width: 100%">
            <el-table-column prop="aritcle.id" label="序号" width="180">
            </el-table-column>
            <el-table-column prop="name" label="栏目名称" width="180">
            </el-table-column>
            <el-table-column prop="description" label="栏目描述">
            </el-table-column>
            <el-table-column prop="id" label="父栏目">
            </el-table-column>
        </el-table> -->
        <!-- <ul> -->
        <div v-for="(item) in tableData">
            <!-- <div v-for="(items) in item"> -->
                {{item.introduce}}
                <!-- <div v-for="(item1) in items">
                    {{item1}}

                </div> -->
            <!-- </div> -->
            
        </div>
        <!-- <li v-for="(value,key) in tableData">{{value}}-{{key}}</li> -->
        <!-- </ul> -->
        <!-- </ul> -->
        <!-- <tr v-for="(aritcle, index) in tableData">
            {{aritcle}}
            <td>{{ item.id }}</td>
            <td>{{ item.name }}</td>
            <td>{{ item.price }}</td>
        </tr> -->
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                tableData: []
            },
            methods: {
                async findAllCategory() {
                    axios.defaults.baseURL = 'http://39.103.160.49:8888';
                    var result = await axios({
                        url: '/index/carousel/findAll',
                        methods: 'get'

                    })
                    console.log(result.data.data);
                    this.tableData = result.data.data;
                    console.log(this.tableData.aritcle);


                }

            },
            created() {
                this.findAllCategory();

            }
        })
    </script>
</body>

</html>